/* eslint-disable import/no-anonymous-default-export */
const initialState = {
  userInfo: {}
}

export default (state = initialState, action) => {
  let newState = JSON.parse(JSON.stringify(state))
  switch (action.type) {

    case 'GetTooken':
      newState.userInfo = action.payload.userInfo;
      break;
    default:
      break
  }
  return newState
}
